using System;
using System.Collections;
using System.Collections.Specialized;
using System.Data;
using System.Data.SqlTypes;
using System.Data.SqlClient;
using System.Text;
using ECommerce.DAL;


namespace Entity
{
	/// <summary>
	/// This object represents the Private Fields of TblProductAdditionalImage.
	/// </summary>
	
	[System.ComponentModel.DataObject]
    public class TblProductAdditionalImage : DatabaseUtility
    {
		#region TblProductAdditionalImage Private Fields


		Int32 _iD;
		Int32 _productID;
		String _additionalImageUrl = String.Empty;
		
		#endregion
		#region TblProductAdditionalImage Constractor
		/// <summary>
        /// Creates an empty object of TblProductAdditionalImage. 
        /// This is mainly used to create a new instance of TblProductAdditionalImage to add a new TblProductAdditionalImage.
        /// </summary>
		public TblProductAdditionalImage(){}
		
				
		/// <summary>
        /// Used to retrieve employee information from database, 
        /// which is also used by Update method to save information of an existing TblProductAdditionalImage.
        /// </summary>
		public TblProductAdditionalImage
		(
			Int32 iD,
			Int32 productID,
			String additionalImageUrl
		)
		{
			_iD = iD;	
			_productID = productID;	
			_additionalImageUrl = additionalImageUrl;	
		}
		
		#endregion
		#region TblProductAdditionalImage Properties
		
		 /***********************************************************************************************
                                    -- PROPERTIES --        
         Contains all the properties representing the data fields of the current entity.
         ***********************************************************************************************/

        /// <summary>
        /// This is the Primary key value of the ID, which can't be assigned from the application,
        /// to ensure the data consistancy, by not letting the user to change the PK_TblProductAdditionalImage to update the data of an another TblProductAdditionalImage instance.
        /// For view or updation purpose, every TblProductAdditionalImage will be retrieved thru the proper 'Get' method.
        /// </summary>
		
		public Int32 ID
		{
			get {return _iD;}	
		}
		
				
		public Int32 ProductID
		{
			get {return _productID;}
			set {_productID = value;}
		}

		public String AdditionalImageUrl
		{
			get {return _additionalImageUrl;}
			set {_additionalImageUrl = value;}
		}

        public string ProductImageSmallThumbnail
        {
            get { return _additionalImageUrl.Replace("list", "smallthumb"); }
        }

        public string ProductImageLargeThumbnail
        {
            get { return _additionalImageUrl.Replace("list", "largethumb"); }
        }

        public string ProductImageDetailSize
        {
            get { return _additionalImageUrl.Replace("list", "detail"); }
        }

        public string ProductImageMaxSize
        {
            get { return _additionalImageUrl.Replace("list", "max"); }
        }

		#endregion
		#region TblProductAdditionalImage Static Methods
		/************************************************************************************
                                    -- CREATE METHOD (STATIC) --
        *************************************************************************************/
		/************************* Architecure note:**********************************
        Note 1:
        This method is specially useful for the case, where we need to use Object Data Source controls.
        For ObjectDataSource/SqlDataSource controls, the insert/update metnod requires paramters methods, rather property based methods.
        However, there is still a way to pass property based objects as method parameter for data source controls, 
        but in that case we could not use Sql type, as view controls or asp parameter control can only contain few of primitive type.
        The main reason to remain the Sql Type in our object architecture is it is faster and contains better way for null value support.
        
        Note 2: 
        Non-primary key: it should be primitive type, as the asp paramter control (included in data source control) supports only primitive types.
        /*****************************************************************************/
		[System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Insert, true)]
        public static  Int32 CreateNewTblProductAdditionalImage
		(
			Int32 productID,
			String additionalImageUrl
		)
		{
			//creating an empty TblProductAdditionalImage object
            TblProductAdditionalImage tblProductAdditionalImage = new TblProductAdditionalImage();
				tblProductAdditionalImage.ProductID = productID;
				tblProductAdditionalImage.AdditionalImageUrl = additionalImageUrl;
			
			return TblProductAdditionalImage.CreateNewTblProductAdditionalImage(tblProductAdditionalImage);
		}
	
		/************************************************************************************
                 -- UPDATE METHODS (STATIC) --
        *************************************************************************************/

        /************************* Architecure note:**********************************
        Note 1:
        This method is specially useful for the case, where we need to use Object Data Source controls.
        For ObjectDataSource/SqlDataSource controls, the insert/update metnod requires paramters methods, rather property based methods.
        However, there is still a way to pass property based objects as method parameter for data source controls, 
        but in that case we could not use Sql type, as view controls or asp parameter control can only contain few of primitive type.
        The main reason to remain the Sql Type in our object architecture is it is faster and contains better way for null value support.
        
        Note 2: 
        There the two types of paramaters will be passed here.
         * a. Primary key paramater: it should be Sql type, as we will bind the primary key property for the view controls (form view, details view etc) as datakey.
         * b. Non-primary key: it should be primitive type, as the asp paramter control (included in data source control) supports only primitive types.
        /*****************************************************************************/
		
		[System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Update, true)]
        public static  bool UpdateTblProductAdditionalImage
		(
			Int32 iD,
			Int32 productID,
			String additionalImageUrl
		)
		{
			 TblProductAdditionalImage tblProductAdditionalImage =  TblProductAdditionalImage.GetTblProductAdditionalImageByID(iD);
			
				tblProductAdditionalImage.ProductID = productID;
				tblProductAdditionalImage.AdditionalImageUrl = additionalImageUrl;
			
			return TblProductAdditionalImage.UpdateTblProductAdditionalImage(tblProductAdditionalImage);
		}

		/************************************************************************************
                         -- DELETE METHODS --
        *************************************************************************************/
        /************************* Architecure note:**********************************
        We have used the employeeId parameter as SqlInt32, to bind the delete method with object data source and view control directly.
        ****************************************************************************/
		[System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Update, true)]
        public static  bool DeleteTblProductAdditionalImage
		(
			Int32 iD
		)
		{
			//Validate Input
			if(iD <= GetIDMinValue)
				throw (new ArgumentOutOfRangeException("iD"));
				
			// Execute SQL Command
            SqlCommand sqlCmd = new SqlCommand();
			AddParameterToSqlCmd(sqlCmd, "@ReturnValue", SqlDbType.Int, 0, ParameterDirection.ReturnValue, null);
			AddParameterToSqlCmd(sqlCmd, "@ID",SqlDbType.Int, 0, ParameterDirection.Input, iD);
			SetCommandType(sqlCmd,CommandType.StoredProcedure,SPR_TBLPRODUCTADDITIONALIMAGE_DELETETBLPRODUCTADDITIONALIMAGE);
			ExecuteScalarCmd(sqlCmd);
			int returnValue = (int)sqlCmd.Parameters["@ReturnValue"].Value;
			return (returnValue == 0 ? false : true);
			
		}
		
		/// <summary>
        /// Deletes a set of employees from the database.
        /// </summary>
		public static bool DeleteTblProductAdditionalImageList( System.Collections.Generic.List<Int32>  iDListToDelete)
		{
			//Validate Input
			foreach (Int32 iD in iDListToDelete)
			    if(iD <= GetIDMinValue)
					throw (new ArgumentOutOfRangeException("iD"));
			
			//performing deletion operation //

            string xmlString = FormatXMLForIdArray(iDListToDelete);
			
			// Execute SQL Command
            SqlCommand sqlCmd = new SqlCommand();
			AddParameterToSqlCmd(sqlCmd, "@ReturnValue", SqlDbType.Int, 0, ParameterDirection.ReturnValue, null);
            AddParameterToSqlCmd(sqlCmd, "@IDList", SqlDbType.Xml, xmlString.ToString().Length, ParameterDirection.Input, xmlString.ToString());
			SetCommandType(sqlCmd,CommandType.StoredProcedure,SPR_TBLPRODUCTADDITIONALIMAGE_DELETETBLPRODUCTADDITIONALIMAGELIST);
			ExecuteScalarCmd(sqlCmd);
			int returnValue = (int)sqlCmd.Parameters["@ReturnValue"].Value;
			return (returnValue == iDListToDelete.Count ? true : false);
		}
		
		/************************************************************************************
                                 -- GET BY PRIMARY METHODS --
        *************************************************************************************/
        /************************* Architecure note:**********************************
        Retrives an Employee from database, based on it's primary key.
        To view or update an employee, everytime we must have to use this type of 'get' method, 
        since we don't have direct access to the Primary key value for assigning value.
        We have used the employeeId parameter as SqlInt32, to bind the delete method with object data source and view control directly.
        /*****************************************************************************/
		[System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Select, true)]
		public static TblProductAdditionalImage GetTblProductAdditionalImageByID(Int32 iD)
		{
			if(iD <= GetIDMinValue)
					throw (new ArgumentOutOfRangeException("iD"));
				
		 	// Execute SQL Command
			SqlCommand sqlCmd = new SqlCommand();
			AddParameterToSqlCmd(sqlCmd, "@ID",SqlDbType.Int, 0, ParameterDirection.Input, iD);
			SetCommandType(sqlCmd,CommandType.StoredProcedure,SPR_TBLPRODUCTADDITIONALIMAGE_GETTBLPRODUCTADDITIONALIMAGEBYID);
			GenerateCollectionFromReader test = new GenerateCollectionFromReader(GenerateTblProductAdditionalImageCollectionFromReader);
            CustomCollection<TblProductAdditionalImage> objCollection = ((CustomCollection<TblProductAdditionalImage>)ExecuteReaderCmd(sqlCmd, test));

            if (objCollection.Count > 0)
                return objCollection[0];
            else
                return null;
		}
		
		/************************************************************************************
                         -- GET BY FOREIGN KEY METHODS --
        *************************************************************************************/
				
		[System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Select, false)]
		public static CustomCollection<TblProductAdditionalImage> GetTblProductAdditionalImageByProductID(Int32 productID)
		{
			if(productID <= GetProductIDMinValue)
					throw (new ArgumentOutOfRangeException("productID"));
				
		 	// Execute SQL Command
			SqlCommand sqlCmd = new SqlCommand();
			AddParameterToSqlCmd(sqlCmd, "@ProductID",SqlDbType.Int, 0, ParameterDirection.Input, productID);
			SetCommandType(sqlCmd,CommandType.StoredProcedure,SPR_TBLPRODUCTADDITIONALIMAGE_GETTBLPRODUCTADDITIONALIMAGEBYPRODUCTID);
			GenerateCollectionFromReader test = new GenerateCollectionFromReader(GenerateTblProductAdditionalImageCollectionFromReader);
            CustomCollection<TblProductAdditionalImage> objCollection = ((CustomCollection<TblProductAdditionalImage>)ExecuteReaderCmd(sqlCmd, test));

            if (objCollection.Count > 0)
                return objCollection;
            else
                return null;
		}
		
		/// <summary>
        /// Gets all the TblProductAdditionalImage regarding 'PREFERRED_LANGUAGE_ID' foreign key.
        /// It supports efficient paging.
        /// </summary>
        /// <returns>A collection of TblProductAdditionalImage.</returns>
		[System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Select, false)]
        public static CustomCollection<TblProductAdditionalImage> GetTblProductAdditionalImageByProductIDPaged(Int32 productID,String orderBy, Int32 startRowIndex, Int32 maximumRows)
		{
            //Validate Input
			if(productID <= GetProductIDMinValue)
					throw (new ArgumentOutOfRangeException("productID"));
			
            if (orderBy == "")
                orderBy = "ProductID";

            // Execute SQL Command
            SqlCommand sqlCmd = new SqlCommand();
			AddParameterToSqlCmd(sqlCmd, "@ProductID",SqlDbType.Int, 0, ParameterDirection.Input, productID);
            AddParameterToSqlCmd(sqlCmd, "@orderby", SqlDbType.VarChar, 50, ParameterDirection.Input, orderBy);
            AddParameterToSqlCmd(sqlCmd, "@startrow", SqlDbType.Int, 0, ParameterDirection.Input, startRowIndex);
            AddParameterToSqlCmd(sqlCmd, "@pagesize", SqlDbType.Int, 0, ParameterDirection.Input, maximumRows);

            SetCommandType(sqlCmd,CommandType.StoredProcedure,SPR_TBLPRODUCTADDITIONALIMAGE_GETTBLPRODUCTADDITIONALIMAGEBYPRODUCTIDPAGED);

            GenerateCollectionFromReader test = new GenerateCollectionFromReader(GenerateTblProductAdditionalImageCollectionFromReader);
            CustomCollection<TblProductAdditionalImage> objCollection = ((CustomCollection<TblProductAdditionalImage>)ExecuteReaderCmd(sqlCmd, test));

            return objCollection;
        }
		
		/// <summary>
        /// This is a supporting method of 'GetEmployeeByPREFERRED_LANGUAGE_IDPagedPagedCountPaged' method.
        /// Used in paging, which returns the total number of records, returned from the ''GetEmployeeByReportsToPaged'' method (regardless of page size).
        /// Although we are not using the parameters, but we need the same signature as ''GetEmployeeByReportsToPaged'' to support paging.
        /// </summary>
		public static int GetTblProductAdditionalImageByProductIDPagedCount(Int32 productID,String orderBy, Int32 startRowIndex, Int32 maximumRows)
        {
            //Validate Input
			if(productID <= GetProductIDMinValue)
					throw (new ArgumentOutOfRangeException("productID"));
			
			// Execute SQL Command
            SqlCommand sqlCmd = new SqlCommand();
			AddParameterToSqlCmd(sqlCmd, "@ProductID",SqlDbType.Int, 0, ParameterDirection.Input, productID);
			AddParameterToSqlCmd(sqlCmd, "@ReturnValue", SqlDbType.Int, 0, ParameterDirection.ReturnValue, null);
            SetCommandType(sqlCmd,CommandType.StoredProcedure,SPR_TBLPRODUCTADDITIONALIMAGE_GETTBLPRODUCTADDITIONALIMAGEBYPRODUCTIDPAGEDCOUNT);
            ExecuteScalarCmd(sqlCmd);

            int returnValue = (int)sqlCmd.Parameters["@ReturnValue"].Value;
            return returnValue;
        }
		
		/************************************************************************************
                 -- GET ALL METHODS --
        *************************************************************************************/
		[System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Select, true)]
        public static CustomCollection<TblProductAdditionalImage> GetAllTblProductAdditionalImage()
		{
		
		 	// Execute SQL Command
            SqlCommand sqlCmd = new SqlCommand();
            SetCommandType(sqlCmd,CommandType.StoredProcedure,SPR_TBLPRODUCTADDITIONALIMAGE_GETALLTBLPRODUCTADDITIONALIMAGE);
            GenerateCollectionFromReader test = new GenerateCollectionFromReader(GenerateTblProductAdditionalImageCollectionFromReader);
            CustomCollection<TblProductAdditionalImage> objCollection = ((CustomCollection<TblProductAdditionalImage>)ExecuteReaderCmd(sqlCmd, test));

            return objCollection;
		}
		
		[System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Select, true)]
        public static CustomCollection<TblProductAdditionalImage> GetAllTblProductAdditionalImagePaged(String orderBy, Int32 startRowIndex, Int32 maximumRows)
        {
            //Validate Input
            if (orderBy == "")
                orderBy = "ID";

            // Execute SQL Command
            SqlCommand sqlCmd = new SqlCommand();
            AddParameterToSqlCmd(sqlCmd, "@orderby", SqlDbType.VarChar, 50, ParameterDirection.Input, orderBy);
            AddParameterToSqlCmd(sqlCmd, "@startrow", SqlDbType.Int, 0, ParameterDirection.Input, startRowIndex);
            AddParameterToSqlCmd(sqlCmd, "@pagesize", SqlDbType.Int, 0, ParameterDirection.Input, maximumRows);

            SetCommandType(sqlCmd,CommandType.StoredProcedure,SPR_TBLPRODUCTADDITIONALIMAGE_GETALLTBLPRODUCTADDITIONALIMAGEPAGED);

            GenerateCollectionFromReader test = new GenerateCollectionFromReader(GenerateTblProductAdditionalImageCollectionFromReader);
            CustomCollection<TblProductAdditionalImage> objCollection = ((CustomCollection<TblProductAdditionalImage>)ExecuteReaderCmd(sqlCmd, test));
            return objCollection;
        }
		
		[System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Select, true)]
        public static int GetAllTblProductAdditionalImagePagedCount(String orderBy, Int32 startRowIndex, Int32 maximumRows)
        {
            // Execute SQL Command
            SqlCommand sqlCmd = new SqlCommand();

            AddParameterToSqlCmd(sqlCmd, "@ReturnValue", SqlDbType.Int, 0, ParameterDirection.ReturnValue, null);
            SetCommandType(sqlCmd,CommandType.StoredProcedure,SPR_TBLPRODUCTADDITIONALIMAGE_GETALLTBLPRODUCTADDITIONALIMAGEPAGEDCOUNT);
            ExecuteScalarCmd(sqlCmd);

            int returnValue = (int)sqlCmd.Parameters["@ReturnValue"].Value;
            return returnValue;
        }
		
		#endregion
		#region Employee Instance Methods
		/************************************************************************************
                                    -- SAVE (INSERT/UPDATE) METHODS (INSTANCE) --
        *************************************************************************************/
		/// <summary>
        /// Saves (inserts and updates) an Employee into database.
        /// The insertion occur if the EmployeeId conatins default value.
        /// Otherwises it updates the Employee into the database, based on the primary key value stored in EmployeeId.
        /// This technique ensures an Employee will not be updated without having a valid EmployeeId.
        /// </summary>
		public bool Save()
		{
			if(ID<= GetIDMinValue)
			{
				Int32 TempId=CreateNewTblProductAdditionalImage(this);
				if(TempId>0)
				{
					_iD=TempId;
					return true;
				}
				else
				{
					// error occurs
					return false;
				}
			}
			else
			{	//This is a update Command
				return (UpdateTblProductAdditionalImage(this));
			}
			
		}
		
		public static Int32 CreateNewTblProductAdditionalImage(TblProductAdditionalImage newTblProductAdditionalImage)
		{
			// validate Parameters
			if (newTblProductAdditionalImage == null)
				throw (new ArgumentNullException("newTblProductAdditionalImage"));

			// Execute SQL Command
			SqlCommand sqlCmd = new SqlCommand();
			int length = 0;
			AddParameterToSqlCmd(sqlCmd, "@ReturnValue", SqlDbType.Int, 0, ParameterDirection.ReturnValue, null);
            
			AddParameterToSqlCmd(sqlCmd, "@ProductID",SqlDbType.Int, 0, ParameterDirection.Input, newTblProductAdditionalImage.ProductID);
			AddParameterToSqlCmd(sqlCmd, "@AdditionalImageUrl",SqlDbType.NVarChar, 500, ParameterDirection.Input, newTblProductAdditionalImage.AdditionalImageUrl);
			
			SetCommandType(sqlCmd,CommandType.StoredProcedure,SPR_TBLPRODUCTADDITIONALIMAGE_CREATENEWTBLPRODUCTADDITIONALIMAGE);
			ExecuteScalarCmd(sqlCmd);
			return (Int32.Parse(sqlCmd.Parameters["@ReturnValue"].Value.ToString()));

		}
		/// <summary>
        /// Updates an TblProductAdditionalImage instance to the database.
        /// </summary>
		public static bool UpdateTblProductAdditionalImage(TblProductAdditionalImage newTblProductAdditionalImage)
		{
			// validate Parameters
			if (newTblProductAdditionalImage == null)
				throw (new ArgumentNullException("newTblProductAdditionalImage"));

			// Execute SQL Command
			SqlCommand sqlCmd = new SqlCommand();
			int length = 0;
			AddParameterToSqlCmd(sqlCmd, "@ReturnValue", SqlDbType.Int, 0, ParameterDirection.ReturnValue, null);
            
			AddParameterToSqlCmd(sqlCmd, "@ID",SqlDbType.Int, 0, ParameterDirection.Input, newTblProductAdditionalImage.ID);
			AddParameterToSqlCmd(sqlCmd, "@ProductID",SqlDbType.Int, 0, ParameterDirection.Input, newTblProductAdditionalImage.ProductID);
			AddParameterToSqlCmd(sqlCmd, "@AdditionalImageUrl",SqlDbType.NVarChar, 500, ParameterDirection.Input, newTblProductAdditionalImage.AdditionalImageUrl);
			
			SetCommandType(sqlCmd,CommandType.StoredProcedure,SPR_TBLPRODUCTADDITIONALIMAGE_UPDATETBLPRODUCTADDITIONALIMAGE);
            ExecuteScalarCmd(sqlCmd);
			int returnValue = (int)sqlCmd.Parameters["@ReturnValue"].Value;
			return (returnValue == 0 ? false : true);
		}
		#endregion
		
		#region TblProductAdditionalImage Related Collections
		/// <summary>
        /// Creates and returns a strongly typed collection of Employee custom entity. 
        /// The colelction is created through iterating on the IdataReader object which contains Employee information, as a set of records, similar to tabular format.
        /// </summary>
		public static CollectionBase  GenerateTblProductAdditionalImageCollectionFromReader(IDataReader returnData) 
		{
			
			//creating the instance of Employee collection
			CustomCollection<TblProductAdditionalImage> colTblProductAdditionalImage = new CustomCollection<TblProductAdditionalImage>();
			
			/************************* Architecure note:**********************************
             * Below code includes the null value functionality to retieve the data which has nill value in database end.
             * Design consideration:
             * Besides general data fields, special care should be taken for primary keys, to assign '0'/defaultvalue, rather passing 'Null' value in constructor parameter.
             * Although we are considering sqldb tyoe data for the current data container, but while retireving data from database end, through datareader object, we need to cast data reader objects using .net primitive data type, 
             * rather using sqldb type to cast, since data reader objects don't support sql db type to be casted.
             *****************************************************************************/

            //Iterating thriugh the data reader, to generate Employee collection.

			//getting the Employee collection by iterating thru the data reader
			while (returnData.Read()) 
			{
				//passing the TblProductAdditionalImage constructor parameters from the current instance of data reader fields.
				TblProductAdditionalImage newTblProductAdditionalImage = new TblProductAdditionalImage
				(
					returnData["ID"]== System.DBNull.Value ? GetIDMinValue : (Int32 ) returnData["ID"],
					returnData["ProductID"]== System.DBNull.Value ? 0: (Int32 ) returnData["ProductID"],
					returnData["AdditionalImageUrl"]== System.DBNull.Value ? string.Empty: (String ) returnData["AdditionalImageUrl"]

				);
				//adding the Employee to the collection
				colTblProductAdditionalImage.Add(newTblProductAdditionalImage);
			}
			
			//returns the collection of Companys 
			return (colTblProductAdditionalImage);
		}
		
		#endregion
		#region Constants and Default Values
		
		public static Int32 GetIDMinValue
		{
			get
			{
				return 0;
			}
		}
		public static Int32 GetProductIDMinValue
		{
			get
			{
				return 0;
			}
		}
		
		//create method related contants
			internal const string SPR_TBLPRODUCTADDITIONALIMAGE_CREATENEWTBLPRODUCTADDITIONALIMAGE="spr_TblProductAdditionalImage_CreateNewTblProductAdditionalImage";
			internal const string SPR_TBLPRODUCTADDITIONALIMAGE_UPDATETBLPRODUCTADDITIONALIMAGE="spr_TblProductAdditionalImage_UpdateTblProductAdditionalImage";
			internal const string SPR_TBLPRODUCTADDITIONALIMAGE_DELETETBLPRODUCTADDITIONALIMAGE="spr_TblProductAdditionalImage_DeleteTblProductAdditionalImage";
			internal const string SPR_TBLPRODUCTADDITIONALIMAGE_DELETETBLPRODUCTADDITIONALIMAGELIST="spr_TblProductAdditionalImage_DeleteTblProductAdditionalImageList";
			internal const string SPR_TBLPRODUCTADDITIONALIMAGE_GETTBLPRODUCTADDITIONALIMAGEBYID="spr_TblProductAdditionalImage_GetTblProductAdditionalImageByID";
			internal const string SPR_TBLPRODUCTADDITIONALIMAGE_GETTBLPRODUCTADDITIONALIMAGEBYPRODUCTID="spr_TblProductAdditionalImage_GetTblProductAdditionalImageByProductID";
			internal const string SPR_TBLPRODUCTADDITIONALIMAGE_GETTBLPRODUCTADDITIONALIMAGEBYPRODUCTIDPAGED="spr_TblProductAdditionalImage_GetTblProductAdditionalImageByProductIDPaged";
			internal const string SPR_TBLPRODUCTADDITIONALIMAGE_GETTBLPRODUCTADDITIONALIMAGEBYPRODUCTIDPAGEDCOUNT="spr_TblProductAdditionalImage_GetTblProductAdditionalImageByProductIDPagedCount";
			internal const string SPR_TBLPRODUCTADDITIONALIMAGE_GETALLTBLPRODUCTADDITIONALIMAGE="spr_TblProductAdditionalImage_GetAllTblProductAdditionalImage";
			internal const string SPR_TBLPRODUCTADDITIONALIMAGE_GETALLTBLPRODUCTADDITIONALIMAGEPAGED="spr_TblProductAdditionalImage_GetAllTblProductAdditionalImagePaged";
			internal const string SPR_TBLPRODUCTADDITIONALIMAGE_GETALLTBLPRODUCTADDITIONALIMAGEPAGEDCOUNT="spr_TblProductAdditionalImage_GetAllTblProductAdditionalImagePagedCount";
		
		#endregion
	}
}	
